package com.mllweb.blog.core.notice.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * 用户名和密码的验证
 *
 * @author lgf
 */
public class MailAuthenticator extends Authenticator {


    public MailAuthenticator() {
        super();
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(EmailConfig.USER, EmailConfig.PWD);
    }
}
